home *** CD-ROM | disk | FTP | other *** search
Text File | 1986-11-21 | 2.3 KB | 120 lines | [TEXT/PJMM] |
- UNIT EditorGlobals;
-
- INTERFACE
-
- { Global Constants }
-
- CONST
- {memory management stuff}
- MaxLines = 65535;
- {quickdraw stuff}
- sizelimit = 128;
- {window constants}
- maxWindows = 4;
- ZoomBox = 8; {window type}
- MinWidth = 80;
- MinHeight = 80;
- MenuBarHeight = 20;
- {dialog stuff}
- otherItem = 3;
- { menu res id's}
- AppleMenu = 256;
- FileMenu = 257;
- EditMenu = 258;
- SearchMenu = 259;
- FormatMenu = 260;
- FontMenu = 261;
- SizeMenu = 262;
- StyleMenu = 263;
- ModeMenu = 264;
- TransferMenu = 265;
- LastMenu = TransferMenu;
-
- {menu items}
- aAbout = 1;
-
- fNew = 1;
- fOpen = 2;
- fClose = 3;
- fSave = 4;
- fSaveAs = 5;
- fPageSet = 6;
- fPrint = 7;
- fQuit = 9;
-
- eUndo = 1;
- eCut = 3;
- eCopy = 4;
- ePaste = 5;
- eClear = 6;
- eSelAll = 8;
- eClipboard = 9;
-
- sPlain = 1;
- sBold = 2;
- sItalic = 3;
- sUnderline = 4;
- sOutline = 5;
- sShadow = 6;
- sCondense = 7;
- sExtend = 8;
- sLeft = 10;
- sCenter = 11;
- sRight = 12;
- Style2Items = 4;
-
- mOr = 1;
- mXor = 2;
- mBic = 3;
-
- {controls stuff}
- active = 0;
- inactive = 255;
- sbarwidth = 16;
-
- { Global Variables }
-
- VAR
-
- {my misc stuff}
- Finished : boolean;
- CR : char;
- BS : char;
- {menu stuff}
- myMenus : ARRAY[AppleMenu..LastMenu] OF MenuHandle;
- LastJust : integer; {current text rec}
- LastFont : integer; {current port}
- LastStyle : Style; {current port}
- LastSize : integer; {current port}
- LastMode : integer; {current port}
- LastmFont : integer; {menu item}
- LastmStyle : integer; {menu item}
- LastmSize : integer; {menu item}
- LastmMode : integer; {menu item}
- LastmJust : integer; {menu item}
- {window stuff}
- ClipBdWindow : Windowptr;
- ClipBdStorage : WindowRecord;
- ClipBdRect : Rect;
- ClipBdText : TEHandle;
- myWindows : ARRAY[1..MaxWindows] OF Windowptr;
- currentWindow : integer; {index to my currently active window}
- GoodbyList : ARRAY[1..MaxWindows] OF Integer; {window status}
- DragArea : Rect;
- GrowArea : Rect;
- Screen : Rect;
- DefaultWindow : Rect;
- ZoomRect : Rect;
- {scrollers stuff}
- myVControls : ARRAY[1..MaxWindows] OF ControlHandle;
- myHControls : ARRAY[1..MaxWindows] OF ControlHandle;
- HCRect, VCRect, GrowRect : Rect;
- {text edit stuff}
- myText : ARRAY[1..MaxWindows] OF TEHandle;
- DestRect : Rect;
- ViewRect : Rect;
- dummy : LongInt; {TEScrap var}
-
- IMPLEMENTATION
-
- END.